/* 该文件用于创建redux中最为核心的对象————store */

//引入createStore，用于创建store
import {createStore,applyMiddleware} from 'redux'
//引入“后厨”——reducer，用于初始化、加工状态
import reducer from './reducer'
//引入redux-thunk，用于：？？？
import thunk from 'redux-thunk'

//创建并暴露一个store
export default createStore(reducer,applyMiddleware(thunk))
